package com.wanmait.translate.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.fasterxml.jackson.annotation.JsonIgnoreProperties;

import java.io.Serializable;
import java.util.Date;
import java.util.List;
@JsonIgnoreProperties(value = {"handler"})
public class SystemPost implements Serializable {
    private Integer id;

    /**
	* 部门ID
	*/
    private SystemDept deptId;

    /**
	* 父ID
	*/
    private Integer parentId;
    //父对象
    private SystemPost parent;

    /**
	* 显示顺序
	*/
    private Integer sort;

    /**
	* 岗位名称
	*/
    private String name;

    /**
	* 人数
	*/
    private Integer personCount;

    /**
	* 描述
	*/
    private String description;

    /**
	* 数据范围（0：自己，1：本部门，2：所有子部门）
	*/
    private Integer dataScope;

    /**
	* 更新权限（0：只查阅，1：可变更）
	*/
    private Integer right;

    /**
	* 是否停用（0显示 1停用）
	*/
    private Integer enable;
    /**
     * 是否默认岗位
     */
    private Boolean defaultValue;


    /**
     * 数据更新（0：只查阅，1：可变更）
     */
    private Integer dataUpdate;

    /**
     * 录入人
     */
    private SystemUser inputPersonId;

    /**
     * 录入时间
     */
    @JsonFormat(pattern="yyyy-MM-dd", timezone="GMT+8")
    private Date inputTime;



    public Boolean getDefaultValue() {
        return defaultValue;
    }

    public void setDefaultValue(Boolean defaultValue) {
        this.defaultValue = defaultValue;
    }

    public Integer getDataUpdate() {
        return dataUpdate;
    }

    public void setDataUpdate(Integer dataUpdate) {
        this.dataUpdate = dataUpdate;
    }

    public SystemUser getInputPersonId() {
        return inputPersonId;
    }

    public void setInputPersonId(SystemUser inputPersonId) {
        this.inputPersonId = inputPersonId;
    }

    public Date getInputTime() {
        return inputTime;
    }

    public void setInputTime(Date inputTime) {
        this.inputTime = inputTime;
    }

    public List<SystemMenu> getSystemMenus() {
        return systemMenus;
    }

    public void setSystemMenus(List<SystemMenu> systemMenus) {
        this.systemMenus = systemMenus;
    }

    private List<SystemMenu> systemMenus;

    private static final long serialVersionUID = 1L;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }

    public SystemDept getDeptId() {
        return deptId;
    }

    public void setDeptId(SystemDept deptId) {
        this.deptId = deptId;
    }


    public Integer getSort() {
        return sort;
    }

    public void setSort(Integer sort) {
        this.sort = sort;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Integer getPersonCount() {
        return personCount;
    }

    public void setPersonCount(Integer personCount) {
        this.personCount = personCount;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public Integer getDataScope() {
        return dataScope;
    }

    public void setDataScope(Integer dataScope) {
        this.dataScope = dataScope;
    }

    public Integer getRight() {
        return right;
    }

    public void setRight(Integer right) {
        this.right = right;
    }

    public Integer getEnable() {
        return enable;
    }

    public void setEnable(Integer enable) {
        this.enable = enable;
    }

    public Integer getParentId() {
        return parentId;
    }

    public void setParentId(Integer parentId) {
        this.parentId = parentId;
    }

    public SystemPost getParent() {
        return parent;
    }

    public void setParent(SystemPost parent) {
        this.parent = parent;
    }

    @Override
    public String toString() {
        return "SystemPost{" +
                "id=" + id +
                ", deptId=" + deptId +
                ", parentId=" + parentId +
                ", parent=" + parent +
                ", sort=" + sort +
                ", name='" + name + '\'' +
                ", personCount=" + personCount +
                ", description='" + description + '\'' +
                ", dataScope=" + dataScope +
                ", right=" + right +
                ", enable=" + enable +
                ", defaultValue=" + defaultValue +
                ", dataUpdate=" + dataUpdate +
                ", inputPersonId=" + inputPersonId +
                ", inputTime=" + inputTime +
                ", systemMenus=" + systemMenus +
                '}';
    }
}